/* 公共聊天样式 */
.group-chat-container {
  display: flex;
  flex-direction: column;
  height: 88.7vh;
  background-color: #f5f5f5;
  overflow: hidden;
}

.chat-header {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  background-color: #fff;
  border-bottom: 1px solid #eee;
}

.chat-title {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 15px;
}

.class-name {
  margin-left: 10px;
  font-weight: 500;
}

.header-actions {
  display: flex;
}

.chat-content {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
}

.message-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.message-item {
  max-width: 70%;
  display: flex;
}

.message-item.self {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

.message-item.self .avatar {
  margin-right: 0;
  margin-left: 10px;
}

.message-bubble {
  padding: 10px 15px;
  border-radius: 8px;
  position: relative;
  max-width: calc(100% - 50px);
}

.message-item:not(.self) .message-bubble {
  background-color: #fff;
  border: 1px solid #eee;
}

.message-item.self .message-bubble {
  background-color: #e1f5fe;
}

.message-sender {
  font-size: 12px;
  color: #666;
  margin-bottom: 5px;
}

.message-time {
  font-size: 12px;
  color: #999;
  margin-top: 5px;
  text-align: right;
}

.chat-input-area {
  padding: 10px 15px;
  background-color: #fff;
  border-top: 1px solid #eee;
}

.input-container {
  display: flex;
  gap: 10px;
}

.message-input {
  flex: 1;
}

/* 通知相关样式 */
.notice-dialog .el-dialog__body {
  max-height: 60vh;
  overflow-y: auto;
  padding: 20px;
}

.notice-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.notice-item {
  padding: 15px;
  background-color: #fff;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
  cursor: pointer;
  transition: all 0.2s;
}

.notice-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.unread-notice {
  border-left: 3px solid #409eff;
}

.notice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.notice-header h4 {
  margin: 0;
  font-size: 16px;
  color: #1e293b;
}

.notice-time {
  font-size: 12px;
  color: #94a3b8;
}

.notice-content {
  color: #475569;
  line-height: 1.6;
  margin-bottom: 10px;
}

.notice-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notice-sender {
  font-size: 13px;
  color: #64748b;
}

/* 文件相关样式 */
.file-list-dialog .el-dialog__body {
  max-height: 60vh;
  overflow-y: auto;
  padding: 20px;
}

.file-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.file-item:last-child {
  border-bottom: none;
}

.file-icon {
  font-size: 20px;
  margin-right: 15px;
  color: #409eff;
}

.file-info {
  flex: 1;
}

.file-name {
  font-size: 14px;
  color: #1e293b;
  margin-bottom: 4px;
}

.file-meta {
  display: flex;
  font-size: 12px;
  color: #94a3b8;
  gap: 15px;
}

.file-actions {
  display: flex;
  gap: 10px;
}

/* 通用样式 */
.search-input {
  margin-bottom: 15px;
}

.upload-area {
  margin-bottom: 15px;
}

.attachment-item {
  margin-top: 10px;
  padding: 5px 10px;
  background-color: #f5f5f5;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.member-info {
  margin-left: 10px;
}

.member-name {
  font-weight: 500;
}

.member-role {
  font-size: 12px;
  color: #666;
}

.operation-buttons {
    display: flex;
    gap: 10px;
}